<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var compute = {
        color: "pink",
        weight: "1000g",
        brand: "NSUS",
        type: "xinghao",
        watch: function () {
          console.log("我在看电影");
        },
        listen: function () {
          console.log("我在听音乐");
        },
        play: function () {
          console.log("我在打游戏");
        },
        coding: function () {
          console.log("我在打代码");
        },
      };
      console.log(compute);
      compute.watch();
      compute.listen();
      compute.play();
      compute.coding();
    </script>
  </body>
</html>
